#include "StdAfx.h"
#include "ShapeInfoFactory.h"

CShapeInfoFactory::CShapeInfoFactory(void)
{
}

CShapeInfoFactory::~CShapeInfoFactory(void)
{
}


void CShapeInfoFactory::Initialize()
{

}

CShapeInfo* CShapeInfoFactory::Create(const CString& szId)
{
	CShapeInfo* pShapeInfo = CreateObject(szId);
	return pShapeInfo;
}

//////////////////////////////////////////////////////////////////////////

CRegShapeInfoHelper::CRegShapeInfoHelper(const CString& guid, CShapeInfoCreator* pCreator)
:m_Guid(guid)
{
	Register(pCreator);
}

CRegShapeInfoHelper::~CRegShapeInfoHelper()
{
	//GetEditorFactory().UnRegisterObject(m_Guid);
}

void CRegShapeInfoHelper::Register(CShapeInfoCreator* pCreator)
{
	bool bResult = GetShapeInfoFactory().RegisterObject(m_Guid, pCreator);
	ASSERT(bResult);
}